192
|
How do I display radio buttons for all cells in the column

With AxComboBox1
.Columns.Add("Radio").Def(EXCOMBOBOXLib.DefColumnEnum.exCellHasRadioButton) = True
.Items.AddItem(0)
.Items.AddItem(1)
End With
|
191
|
How do I display checkboxes for all cells in the column

With AxComboBox1
.Columns.Add("Check").Def(EXCOMBOBOXLib.DefColumnEnum.exCellHasCheckBox) = True
.Items.AddItem(0)
.Items.AddItem(1)
End With
|
247
|
How do I display as strikeout an item

With AxComboBox1
.Columns.Add("Default")
With .Items
.ItemStrikeOut(.AddItem("strikeout")) = True
End With
End With
|
248
|
How do I display as strikeout a cell or an item

With AxComboBox1
.Columns.Add("Default")
With .Items
.CellCaptionFormat(.AddItem("gets <s>strikeout</s> only a portion of text"),0) = EXCOMBOBOXLib.CaptionFormatEnum.exHTML
End With
End With
|
249
|
How do I display as strikeout a cell

With AxComboBox1
.Columns.Add("Default")
With .Items
.CellStrikeOut(.AddItem("strikeout"),0) = True
End With
End With
|
241
|
How do I display as italic an item

With AxComboBox1
.Columns.Add("Default")
With .Items
.ItemItalic(.AddItem("italic")) = True
End With
End With
|
242
|
How do I display as italic a cell or an item

With AxComboBox1
.Columns.Add("Default")
With .Items
.CellCaptionFormat(.AddItem("gets <i>italic</i> only a portion of text"),0) = EXCOMBOBOXLib.CaptionFormatEnum.exHTML
End With
End With
|
243
|
How do I display as italic a cell

With AxComboBox1
.Columns.Add("Default")
With .Items
.CellItalic(.AddItem("italic"),0) = True
End With
End With
|
90
|
How do I disable the full-row selection in the control

With AxComboBox1
.FullRowSelect = False
.Columns.Add("Column")
.Items.AddItem("One")
.Items.AddItem("Two")
End With
|
113
|
How do I disable the control

With AxComboBox1
.Enabled = False
End With
|
80
|
How do I disable sorting the columns when clicking the control's header

With AxComboBox1
.SortOnClick = EXCOMBOBOXLib.SortOnClickEnum.exNoSort
.Columns.Add("1")
.Columns.Add("2")
End With
|
81
|
How do I disable sorting a specified column when clicking its header

With AxComboBox1
.Columns.Add("1")
.Columns.Add("NoSort").AllowSort = False
End With
|
118
|
How do I disable showing the tooltip for all control
With AxComboBox1
.ToolTipDelay = 0
.Columns.Add("tootip").ToolTip = "this is a tooltip assigned to a column"
End With
|
178
|
How do I disable resizing a column at runtime

With AxComboBox1
.Columns.Add("Unsizable").AllowSizing = False
.Columns.Add("C2")
.Columns.Add("C3")
.Columns.Add("C4")
End With
|
250
|
How do I disable or enable an item

With AxComboBox1
.Columns.Add("Default")
With .Items
.EnableItem(.AddItem("disabled")) = False
End With
.Items.AddItem("enabled")
End With
|
179
|
How do I disable drag and drop columns

With AxComboBox1
.Columns.Add("C1").AllowDragging = False
.Columns.Add("C2").AllowDragging = False
End With
|
51
|
How do I change visual appearance of the +/- ( expand/collapse ) buttons

Dim h
With AxComboBox1
.LinesAtRoot = EXCOMBOBOXLib.LinesAtRootEnum.exGroupLinesAtRoot
.HasButtons = EXCOMBOBOXLib.ExpandButtonEnum.exWPlus
.Columns.Add("Column")
With .Items
h = .AddItem("Root 1")
.InsertItem(h,Nothing,"Child 1")
.InsertItem(h,Nothing,"Child 2")
.ExpandItem(h) = True
h = .AddItem("Root 2")
.InsertItem(h,Nothing,"Child")
End With
End With
|
266
|
How do I change the visual effect for the cell, using your EBN files

Dim h
With AxComboBox1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.Columns.Add("C1")
.Columns.Add("C2")
With .Items
h = .AddItem("Cell 1")
.CellCaption(h,1) = "Cell 2"
.CellBackColor(h,1) = &H1000000
End With
End With
|
147
|
How do I change the visual aspect only for the thumb in the scroll bar, using EBN

With AxComboBox1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn")
.VisualAppearance.Add(3,"c:\exontrol\images\hot.ebn")
.set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exHSThumb,16777216)
.set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exHSThumbP,33554432)
.set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exHSThumbH,50331648)
.ColumnAutoResize = False
.Columns.Add("S").Width = 483
End With
|
140
|
How do I change the visual aspect of the drop down filter button, using EBN

With AxComboBox1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exHeaderFilterBarButton,16777216)
.Columns.Add("Filter").DisplayFilterButton = True
End With
|
143
|
How do I change the visual aspect of the drop down calendar window, that shows up if I click the drop down filter button, using EBN

With AxComboBox1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn")
.set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exDateHeader,16777216)
.set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exDateTodayUp,16777216)
.set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exDateTodayDown,33554432)
.set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exDateScrollThumb,16777216)
.set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exDateScrollRange,15132390)
.set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exDateSeparatorBar,15132390)
.set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exDateSelect,16777216)
With .Columns.Add("Date")
.FilterType = EXCOMBOBOXLib.FilterTypeEnum.exDate
.DisplayFilterButton = True
.DisplayFilterDate = True
End With
End With
|
142
|
How do I change the visual aspect of the close button in the filter bar, using EBN

With AxComboBox1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exFooterFilterBarButton,16777216)
.Columns.Add("Filter").FilterType = EXCOMBOBOXLib.FilterTypeEnum.exBlanks
.ApplyFilter()
End With
|
144
|
How do I change the visual aspect of selected item in the drop down filter window, using your EBN technology

With AxComboBox1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exSelBackColorFilter,16777216)
.set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exSelForeColorFilter,1316095)
.Columns.Add("Filter").DisplayFilterButton = True
End With
|
141
|
How do I change the visual aspect of buttons in the cell, using EBN

With AxComboBox1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn")
.set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exCellButtonUp,16777216)
.set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exSizeGrip,33554432)
.SelForeColor = RGB(0,0,0)
.ShowFocusRect = False
.Columns.Add("Column 1").Def(EXCOMBOBOXLib.DefColumnEnum.exCellHasButton) = True
.Items.AddItem("Button 1")
.Items.AddItem("Button 2")
.Columns.Add("Column 2")
End With
|
148
|
How do I change the visual aspect for thumb parts in the scroll bars, using EBN

With AxComboBox1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.VisualAppearance.Add(2,"c:\exontrol\images\pushed.ebn")
.VisualAppearance.Add(3,"c:\exontrol\images\hot.ebn")
.set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exHSThumb,16777216)
.set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exHSThumbP,33554432)
.set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exHSThumbH,50331648)
.set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exVSThumb,16777216)
.set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exVSThumbP,33554432)
.set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exVSThumbH,50331648)
.ColumnAutoResize = False
.ScrollBySingleLine = True
.Columns.Add("S").Width = 483
With .Items
.ItemHeight(.AddItem("Item 1")) = 248
End With
.Items.AddItem("Item 2")
End With
|
236
|
How do I change the visual appearance for the item, using your EBN technology

Dim h,hC
With AxComboBox1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.Columns.Add("Default")
With .Items
h = .AddItem("Root")
hC = .InsertItem(h,Nothing,"Child 1")
.ItemBackColor(hC) = &H1000000
.InsertItem(h,Nothing,"Child 2")
.ExpandItem(h) = True
End With
End With
|
98
|
How do I change the visual appearance effect for the selected item, using EBN

With AxComboBox1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.GetOcx().SelBackColor = &H1000000
.SelForeColor = RGB(0,0,0)
.ShowFocusRect = False
.Columns.Add("Column")
.Items.AddItem(0)
.Items.AddItem(1)
End With
|
335
|
How do I change the text in the edit or label area

With AxComboBox1
.Columns.Add("Column")
With .Items
.AddItem("Item 3")
.AddItem("Item 1")
.AddItem("Item 2")
End With
.set_EditText(0,"Test")
End With
|
157
|
How do I change the item's foreground color for numbers between an interval - Range

With AxComboBox1
.ConditionalFormats.Add("%0 >= 2 and %0 <= 10").ForeColor = RGB(255,0,0)
.Columns.Add("Numbers")
.Items.AddItem(1)
.Items.AddItem(2)
.Items.AddItem(10)
.Items.AddItem(20)
End With
|
156
|
How do I change the item's background color for numbers less than a value

With AxComboBox1
.ConditionalFormats.Add("%0 < 10").BackColor = RGB(255,0,0)
.Columns.Add("Numbers")
.Items.AddItem(1)
.Items.AddItem(2)
.Items.AddItem(10)
.Items.AddItem(20)
End With
|
102
|
How do I change the height of the control's filterbar

With AxComboBox1
.FilterBarHeight = 32
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = EXCOMBOBOXLib.FilterTypeEnum.exBlanks
End With
.ApplyFilter()
End With
|
251
|
How do I change the height of an item

With AxComboBox1
.ScrollBySingleLine = True
.Columns.Add("Default")
With .Items
.ItemHeight(.AddItem("height")) = 128
End With
.Items.AddItem("enabled")
End With
|
101
|
How do I change the header's foreground color

With AxComboBox1
.HeaderForeColor = RGB(255,0,0)
.Columns.Add("Column 1")
.Columns.Add("Column 2")
.Items.AddItem("Item 1")
End With
|
103
|
How do I change the foreground color of the control's filterbar

With AxComboBox1
.FilterBarForeColor = RGB(255,0,0)
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = EXCOMBOBOXLib.FilterTypeEnum.exBlanks
End With
.ApplyFilter()
End With
|
237
|
How do I change the foreground color for the item

Dim h,hC
With AxComboBox1
.Columns.Add("Default")
With .Items
h = .AddItem("Root")
hC = .InsertItem(h,Nothing,"Child 1")
.ItemForeColor(hC) = RGB(255,0,0)
.InsertItem(h,Nothing,"Child 2")
.ExpandItem(h) = True
End With
End With
|
106
|
How do I change the font of the control's filterbar

With AxComboBox1
.FilterBarFont.Size = 20
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = EXCOMBOBOXLib.FilterTypeEnum.exBlanks
End With
.ApplyFilter()
End With
|
568
|
How do I change the drop down filter icon/button (black)

With AxComboBox1
.BeginUpdate()
With .VisualAppearance
.Add(1,"gBFLBCJwBAEHhEJAAEhABXUIQAAYAQGKIcBiAKBQAGYBIJDEMgzDDAUBjKKocQTC4AIQjCK4JDKHYJRpHEZyCA8EhqGASRAFUQBYiWE4oSpLABQaK0ZwIGyRIrkGQgQ" & _
"gmPYDSDNU4zVIEEglBI0TDNczhNDENgtGYaJqHIYpZBcM40TKkEZoSIITZcRrOEBiRL1S0RBhGcRUHZlWzdN64LhuK47UrWdD/XhdVzXRbjfz1Oq+bxve48Br7A5yYTh" & _
"dr4LhOFQ3RjIL4xbIcUwGe6VZhjOLZXjmO49T69HTtOCYBEBA")
End With
.set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exCursorHoverColumn,-1)
.set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exHeaderFilterBarButton,16777216)
.set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exBackColorFilter,65536)
.set_Background(EXCOMBOBOXLib.BackgroundPartEnum.exForeColorFilter,16777215)
.set_Description(EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarExclude,"<bgcolor 0><fgcolor ffffff> Exclude </fgcolor></bgcolor>")
.HeaderAppearance = EXCOMBOBOXLib.AppearanceEnum.None2
.HeaderBackColor = RGB(0,0,0)
.HeaderForeColor = RGB(255,255,255)
.HeaderVisible = True
With .Columns.Add("Filter")
.FilterList = EXCOMBOBOXLib.FilterListEnum.exShowExclude Or EXCOMBOBOXLib.FilterListEnum.exShowCheckBox
.DisplayFilterButton = True
.AllowSort = False
.AllowDragging = False
End With
With .Items
.AddItem("One")
.AddItem("Two")
.AddItem("Three")
End With
.EndUpdate()
End With
|
86
|
How do I change the control's foreground color

With AxComboBox1
.ForeColor = RGB(120,120,120)
.Columns.Add("Column")
.Items.AddItem("item")
End With
|
322
|
How do I change the control's border, using your EBN files

With AxComboBox1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.Appearance = &H1000000
End With
|
85
|
How do I change the control's background color

With AxComboBox1
.BackColor = RGB(200,200,200)
End With
|
87
|
How do I change the control's background / foreground color on the locked area

With AxComboBox1
.CountLockedColumns = 1
.ForeColorLock = RGB(240,240,240)
.BackColorLock = RGB(128,128,128)
.ColumnAutoResize = False
.Columns.Add("Locked").Width = 128
.Columns.Add("Un-Locked 1").Width = 128
.Columns.Add("Un-Locked 2").Width = 128
.Columns.Add("Un-Locked 3").Width = 128
With .Items
.CellCaption(.AddItem("locked"),1) = "unlocked"
End With
End With
|
158
|
How do I change the column's foreground color for numbers between an interval - Range

With AxComboBox1
With .ConditionalFormats.Add("%0 >= 2 and %0 <= 10")
.Bold = True
.ForeColor = RGB(255,0,0)
.ApplyTo = &H1
End With
.Columns.Add("N1")
.Columns.Add("N2")
With .Items
.CellCaption(.AddItem(1),1) = 2
End With
With .Items
.CellCaption(.AddItem(3),1) = 3
End With
With .Items
.CellCaption(.AddItem(10),1) = 11
End With
With .Items
.CellCaption(.AddItem(13),1) = 31
End With
.SearchColumnIndex = 1
End With
|
175
|
How do I change the column's caption

With AxComboBox1
.Columns.Add("Column").Caption = "new caption"
End With
|
97
|
How do I change the colors for the selected item

With AxComboBox1
.SelBackColor = RGB(0,0,0)
.Columns.Add("Column")
.Items.AddItem(0)
.Items.AddItem(1)
End With
|
267
|
How do I change the cell's foreground color

Dim h
With AxComboBox1
.Columns.Add("C1")
.Columns.Add("C2")
With .Items
h = .AddItem("Cell 1")
.CellCaption(h,1) = "Cell 2"
.CellForeColor(h,1) = RGB(255,0,0)
End With
End With
|
265
|
How do I change the cell's background color

Dim h
With AxComboBox1
.Columns.Add("C1")
.Columns.Add("C2")
With .Items
h = .AddItem("Cell 1")
.CellCaption(h,1) = "Cell 2"
.CellBackColor(h,1) = RGB(255,0,0)
End With
End With
|
264
|
How do I change the caption or value for a particular cell

With AxComboBox1
.Columns.Add("C1")
.Columns.Add("C2")
With .Items
.CellCaption(.AddItem("Cell 1"),1) = "Cell 2"
End With
End With
|
115
|
How do I change the caption being displayed in the control's filter bar

With AxComboBox1
.FilterBarCaption = "your filter caption"
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = EXCOMBOBOXLib.FilterTypeEnum.exBlanks
End With
.ApplyFilter()
End With
|
104
|
How do I change the background color of the control's filterbar

With AxComboBox1
.FilterBarBackColor = RGB(240,240,240)
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = EXCOMBOBOXLib.FilterTypeEnum.exBlanks
End With
.ApplyFilter()
End With
|
235
|
How do I change the background color for the item

Dim h,hC
With AxComboBox1
.Columns.Add("Default")
With .Items
h = .AddItem("Root")
hC = .InsertItem(h,Nothing,"Child 1")
.ItemBackColor(hC) = RGB(255,0,0)
.InsertItem(h,Nothing,"Child 2")
.ExpandItem(h) = True
End With
End With
|
33
|
How do I change the "All", "Blanks" or/and "NonBlanks" caption in the drop down filter window

With AxComboBox1
.Columns.Add("Column").DisplayFilterButton = True
.set_Description(EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarAll,"new name for (All)")
End With
|
111
|
How do I call your x-script language

With AxComboBox1
With .ExecuteTemplate("Columns.Add(`Column`)")
.HeaderStrikeOut = True
.HeaderBold = True
End With
End With
|
110
|
How do I call your x-script language

With AxComboBox1
.Template = "Columns.Add(`Column`).HTMLCaption = `<b>C</b>olumn`"
End With
|
238
|
How do I bold an item

With AxComboBox1
.Columns.Add("Default")
With .Items
.ItemBold(.AddItem("bold")) = True
End With
End With
|
239
|
How do I bold a cell or an item

With AxComboBox1
.Columns.Add("Default")
With .Items
.CellCaptionFormat(.AddItem("gets <b>bold</b> only a portion of text"),0) = EXCOMBOBOXLib.CaptionFormatEnum.exHTML
End With
End With
|
240
|
How do I bold a cell

With AxComboBox1
.Columns.Add("Default")
With .Items
.CellBold(.AddItem("bold"),0) = True
End With
End With
|
233
|
How do I associate an extra data to an item

With AxComboBox1
.Columns.Add("Default")
With .Items
.ItemData(.AddItem("item")) = "your extra data"
End With
End With
|
163
|
How do I assign an icon to the button in the scrollbar

With AxComboBox1
.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" & _
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" & _
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" & _
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
.set_ScrollPartVisible(EXCOMBOBOXLib.ScrollBarEnum.exHScroll,EXCOMBOBOXLib.ScrollPartEnum.exLeftB1Part,True)
.set_ScrollPartCaption(EXCOMBOBOXLib.ScrollBarEnum.exHScroll,EXCOMBOBOXLib.ScrollPartEnum.exLeftB1Part,"<img>1</img>")
.ScrollHeight = 18
.ScrollButtonWidth = 18
End With
|
164
|
How do I assign a tooltip to a scrollbar

With AxComboBox1
.set_ScrollToolTip(EXCOMBOBOXLib.ScrollBarEnum.exHScroll,"This is a tooltip being shown when you click and drag the thumb in the horizontal scroll bar")
.ColumnAutoResize = False
.Columns.Add("C1").Width = 256
.Columns.Add("C2").Width = 256
.Columns.Add("C3").Width = 256
End With
|
578
|
How do I assign a database to your control, using ADO, ADOR or ADODB objects (MDB,JET)

Dim rs
With AxComboBox1
.BeginUpdate()
.ColumnAutoResize = False
rs = CreateObject("ADOR.Recordset")
With rs
.Open("Orders","Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Program Files\Exontrol\ExComboBox\Sample\Access\SAMPLE.MDB",3,3)
End With
.DataSource = rs
.EndUpdate()
End With
|
99
|
How do I assign a database to your control, using ADO, ADOR or ADODB objects

Dim rs
With AxComboBox1
.ColumnAutoResize = False
rs = CreateObject("ADOR.Recordset")
With rs
.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Program Files\Exontrol\ExComboBox\Sample\Access\SAMPLE.MDB",3,3)
End With
.DataSource = rs
End With
|
200
|
How do I arrange my columns on multiple lines

With AxComboBox1
.HeaderHeight = 32
.Columns.Add("").HTMLCaption = "Line 1<br>Line 2"
End With
|
201
|
How do I arrange my columns on multiple levels

With AxComboBox1
.Columns.Add("S").Width = 32
.Columns.Add("Level 2").LevelKey = 1
.Columns.Add("Level 3").LevelKey = 1
.Columns.Add("Level 4").LevelKey = 1
.Columns.Add("Level 1").LevelKey = "2"
.Columns.Add("Level 2").LevelKey = "2"
.Columns.Add("Level 3").LevelKey = "2"
.Columns.Add("Level 4").LevelKey = "2"
.Columns.Add("E").Width = 32
End With
|
303
|
How do I apply HTML format to a cell

Dim h
With AxComboBox1
.TreeColumnIndex = -1
.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" & _
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" & _
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" & _
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
.set_HTMLPicture("p1","c:\exontrol\images\zipdisk.gif")
.set_HTMLPicture("p2","c:\exontrol\images\auction.gif")
.Columns.Add("Default")
With .Items
h = .AddItem("The following item shows some of the HTML format supported:")
.CellHAlignment(h,0) = EXCOMBOBOXLib.AlignmentEnum.CenterAlignment
h = .AddItem("<br>text icons <img>1</img>, <img>2</img>, ... pictures <img>p1</img>, <img>p2</img> <br><br>text <b>bold</b>, <i>italic</i>, <" & _
"u>underline</u>, <s>strikeout</s>, ...<br><dotline>and so on...<br> <a>anchor</a> or <a2>hyperlink</a><br><fgcolor=FF0000>fgcolo" & _
"r</fgcolor> or <bgcolor=00FF00>bgcolor</bgcolor> ")
.CellCaptionFormat(h,0) = EXCOMBOBOXLib.CaptionFormatEnum.exHTML
.CellSingleLine(h,0) = EXCOMBOBOXLib.CellSingleLineEnum.exCaptionWordWrap
End With
End With
|
182
|
How do I align the icon in the column's header to the right

With AxComboBox1
.Images("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq" & _
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" & _
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" & _
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=")
With .Columns.Add("ColumnName")
.HeaderImage = 1
.HeaderImageAlignment = EXCOMBOBOXLib.AlignmentEnum.RightAlignment
End With
End With
|
346
|
How do change the visual appearance for the drop down border, using EBN

With AxComboBox1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.DropDownBorder = &H1000000
End With
|
70
|
How do change the visual appearance for the control's header bar, using EBN

With AxComboBox1
.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
.GetOcx().HeaderBackColor = &H1000000
End With
|
197
|
How do change the vertical alignment for all cells in the column

With AxComboBox1
.Columns.Add("MultipleLine").Def(EXCOMBOBOXLib.DefColumnEnum.exCellSingleLine) = False
.Columns.Add("VAlign").Def(EXCOMBOBOXLib.DefColumnEnum.exCellVAlignment) = 2
With .Items
.CellCaption(.AddItem("This is a bit of long text that should break the line"),1) = "bottom"
End With
With .Items
.CellCaption(.AddItem("This is a bit of long text that should break the line"),1) = "bottom"
End With
End With
|
196
|
How do change the foreground color for all cells in the column

With AxComboBox1
.Columns.Add("ForeColor").Def(EXCOMBOBOXLib.DefColumnEnum.exCellForeColor) = 255
.Items.AddItem(0)
.Items.AddItem(1)
End With
|
195
|
How do change the background color for all cells in the column

With AxComboBox1
.Columns.Add("BackColor").Def(EXCOMBOBOXLib.DefColumnEnum.exCellBackColor) = 255
.Items.AddItem(0)
.Items.AddItem(1)
End With
|
5
|
How can I use HTML format in column's header

With AxComboBox1
.Columns.Add("ColumnName").HTMLCaption = "<b>HTML</b> <fgcolor=0000FF>Col</fgcolor>umn"
End With
|
28
|
How can I underline the column's header

With AxComboBox1
.Columns.Add("Column 1").HeaderUnderline = True
End With
|
213
|
How can I underline all cells in the column

Dim var_ConditionalFormat
With AxComboBox1
var_ConditionalFormat = .ConditionalFormats.Add("1")
With var_ConditionalFormat
.Underline = True
.ApplyTo = EXCOMBOBOXLib.FormatApplyToEnum.exFormatToColumns
End With
.Columns.Add("Column")
.Items.AddItem(0)
.Items.AddItem(1)
End With
|
185
|
How can I specify the minimum width for the column, if I use WidthAutoResize property

With AxComboBox1
With .Columns.Add("Auto")
.WidthAutoResize = True
.MinWidthAutoResize = 32
End With
.Items.AddItem(0)
.Items.AddItem(1)
End With
|
186
|
How can I specify the maximum width for the column, if I use WidthAutoResize property

With AxComboBox1
With .Columns.Add("Auto")
.WidthAutoResize = True
.MinWidthAutoResize = 32
.MaxWidthAutoResize = 128
End With
.Items.AddItem(0)
.Items.AddItem(1)
End With
|
441
|
How can I specify the format for negative numbers

Dim h
With AxComboBox1
.BeginUpdate()
.Columns.Add("Def").Def(EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat) = 1
With .Items
h = .AddItem(-100000.27)
.FormatCell(h,0) = "(value format '') + ' <fgcolor=808080>(default)'"
h = .AddItem(-100000.27)
.FormatCell(h,0) = "(value format '||||1') + ' <fgcolor=808080>(Negative sign, number; for example, -1.1)'"
End With
.EndUpdate()
End With
|
432
|
How can I specify an item to be always the last item

Dim h
With AxComboBox1
.BeginUpdate()
.TreeColumnIndex = -1
.Columns.Add("Numbers").SortType = EXCOMBOBOXLib.SortTypeEnum.SortNumeric
With .Items
.AddItem(1)
.AddItem(2)
.AddItem(3)
.AddItem(4)
h = .AddItem("last")
.CellHAlignment(h,0) = EXCOMBOBOXLib.AlignmentEnum.RightAlignment
.SortableItem(h) = False
.SortChildren(0,0,True)
End With
.EndUpdate()
End With
|
433
|
How can I specify an item to be always the first item

Dim h
With AxComboBox1
.BeginUpdate()
.TreeColumnIndex = -1
.Columns.Add("Numbers").SortType = EXCOMBOBOXLib.SortTypeEnum.SortNumeric
With .Items
.AddItem(1)
.AddItem(2)
.AddItem(3)
.AddItem(4)
h = .AddItem("first")
.ItemPosition(h) = 0
.CellHAlignment(h,0) = EXCOMBOBOXLib.AlignmentEnum.RightAlignment
.SortableItem(h) = False
.SortChildren(0,0,False)
End With
.EndUpdate()
End With
|
530
|
How can I specify alternate background colors for each root item, similar with BackColorAlternate

Dim h
With AxComboBox1
.BeginUpdate()
.LinesAtRoot = EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot
With .Columns.Add("Default")
.Def(EXCOMBOBOXLib.DefColumnEnum.exCellHasCheckBox) = True
.PartialCheck = True
End With
With .Columns.Add("Position")
.FormatColumn = "( ( 1:=( ( 0:=(1 rpos '') ) lfind `.`) ) < 0 ? =:0 : (=:0 left =:1) )"
.Visible = False
End With
With .ConditionalFormats.Add("%C1 mod 2")
.BackColor = RGB(240,240,240)
End With
With .Items
h = .AddItem("Root 1")
.InsertItem(h,Nothing,"Child 1")
.InsertItem(h,Nothing,"Child 2")
.ExpandItem(h) = True
h = .AddItem("Root 2")
.InsertItem(h,Nothing,"Child 1")
.InsertItem(h,Nothing,"Child 2")
h = .AddItem("Root 3")
.InsertItem(h,Nothing,"Child 1")
.InsertItem(h,Nothing,"Child 2")
End With
.EndUpdate()
End With
|
355
|
How can I sort the value gets listed in the drop down filter window

Dim h
With AxComboBox1
.LinesAtRoot = EXCOMBOBOXLib.LinesAtRootEnum.exLinesAtRoot
.MarkSearchColumn = False
.set_Description(EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarAll,"")
.set_Description(EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarBlanks,"")
.set_Description(EXCOMBOBOXLib.DescriptionTypeEnum.exFilterBarNonBlanks,"")
With .Columns.Add("P1")
.DisplayFilterButton = True
.DisplayFilterPattern = False
.FilterList = EXCOMBOBOXLib.FilterListEnum.exSortItemsDesc
End With
With .Columns.Add("P2")
.DisplayFilterButton = True
.DisplayFilterPattern = False
.FilterList = EXCOMBOBOXLib.FilterListEnum.exSortItemsAsc
End With
With .Items
h = .AddItem("Z3")
.CellCaption(h,1) = "C"
.CellCaption(.InsertItem(h,Nothing,"Z1"),1) = "B"
.CellCaption(.InsertItem(h,Nothing,"Z2"),1) = "A"
.ExpandItem(h) = True
End With
End With
|
230
|
How can I sort the items

Dim h
With AxComboBox1
.Columns.Add("Default")
With .Items
h = .AddItem("Root")
.InsertItem(h,Nothing,"Child 1")
.InsertItem(h,Nothing,"Child 2")
.ExpandItem(h) = True
End With
.Columns.Item("Default").SortOrder = EXCOMBOBOXLib.SortOrderEnum.SortDescending
End With
|
136
|
How can I sort by multiple columns

With AxComboBox1
.SingleSort = False
.Columns.Add("C1").SortOrder = EXCOMBOBOXLib.SortOrderEnum.SortAscending
.Columns.Add("C2").SortOrder = EXCOMBOBOXLib.SortOrderEnum.SortDescending
.Columns.Add("C3").SortOrder = EXCOMBOBOXLib.SortOrderEnum.SortAscending
End With
|
434
|
How can I simulate displaying groups

Dim h,h1
With AxComboBox1
.HasLines = EXCOMBOBOXLib.HierarchyLineEnum.exNoLine
.ScrollBySingleLine = True
With .Columns
.Add("Name")
.Add("A")
.Add("B")
.Add("C")
End With
With .Items
h = .AddItem("Group 1")
.CellHAlignment(h,0) = EXCOMBOBOXLib.AlignmentEnum.CenterAlignment
.ItemDivider(h) = 0
.ItemDividerLineAlignment(h) = EXCOMBOBOXLib.DividerAlignmentEnum.DividerBoth
.ItemHeight(h) = 24
.SortableItem(h) = False
h1 = .InsertItem(h,Nothing,"Child 1")
.CellCaption(h1,1) = 1
.CellCaption(h1,2) = 2
.CellCaption(h1,3) = 3
h1 = .InsertItem(h,Nothing,"Child 2")
.CellCaption(h1,1) = 4
.CellCaption(h1,2) = 5
.CellCaption(h1,3) = 6
.ExpandItem(h) = True
h = .AddItem("Group 2")
.CellHAlignment(h,0) = EXCOMBOBOXLib.AlignmentEnum.CenterAlignment
.ItemDivider(h) = 0
.ItemDividerLineAlignment(h) = EXCOMBOBOXLib.DividerAlignmentEnum.DividerBoth
.ItemHeight(h) = 24
.SortableItem(h) = False
h1 = .InsertItem(h,Nothing,"Child 1")
.CellCaption(h1,1) = 1
.CellCaption(h1,2) = 2
.CellCaption(h1,3) = 3
h1 = .InsertItem(h,Nothing,"Child 2")
.CellCaption(h1,1) = 4
.CellCaption(h1,2) = 5
.CellCaption(h1,3) = 6
.ExpandItem(h) = True
End With
End With
|
128
|
How can I show the locked / fixed items on the bottom side of the control

With AxComboBox1
.ShowLockedItems = True
.Columns.Add("Column")
With .Items
.LockedItemCount(EXCOMBOBOXLib.VAlignmentEnum.exMiddle) = 2
.CellCaption(.LockedItem(EXCOMBOBOXLib.VAlignmentEnum.exMiddle,0),0) = "locked item 1"
.CellCaption(.LockedItem(EXCOMBOBOXLib.VAlignmentEnum.exMiddle,1),0) = "locked item 2"
.AddItem("un-locked item")
End With
End With
|
127
|
How can I show the locked / fixed items

With AxComboBox1
.ShowLockedItems = True
.Columns.Add("Column")
With .Items
.LockedItemCount(EXCOMBOBOXLib.VAlignmentEnum.exTop) = 2
.CellCaption(.LockedItem(EXCOMBOBOXLib.VAlignmentEnum.exTop,0),0) = "locked item 1"
.CellCaption(.LockedItem(EXCOMBOBOXLib.VAlignmentEnum.exTop,1),0) = "locked item 2"
.AddItem("un-locked item")
End With
End With
|
336
|
How can I show the drop down window as soon as user starts typing in the control

With AxComboBox1
.AutoDropDown = True
.Columns.Add("Column")
With .Items
.AddItem("Item 3")
.AddItem("Item 1")
.AddItem("Item 2")
End With
End With
|
125
|
How can I show the control's sort bar

With AxComboBox1
.SortBarVisible = True
End With
|
55
|
How can I show the control's grid lines only for added/visible items

With AxComboBox1
.MarkSearchColumn = False
.DrawGridLines = EXCOMBOBOXLib.GridLinesEnum.exRowLines
.Columns.Add("Column 1")
.Columns.Add("Column 2")
.Items.AddItem(0)
.Items.AddItem(1)
.Items.AddItem(2)
End With
|
17
|
How can I show the control's grid lines

With AxComboBox1
.MarkSearchColumn = False
.DrawGridLines = EXCOMBOBOXLib.GridLinesEnum.exAllLines
.Columns.Add("Column 1")
.Columns.Add("Column 2")
.Items.AddItem(0)
.Items.AddItem(1)
.Items.AddItem(2)
End With
|
449
|
How can I show the child items with no identation

Dim h
With AxComboBox1
.LinesAtRoot = EXCOMBOBOXLib.LinesAtRootEnum.exGroupLinesOutside
.Indent = 12
.HasLines = EXCOMBOBOXLib.HierarchyLineEnum.exThinLine
.Columns.Add("Default")
With .Items
h = .AddItem("Root 1")
.InsertItem(h,Nothing,"Child 1")
.InsertItem(h,Nothing,"Child 2")
.InsertItem(h,Nothing,"Child 3")
.ExpandItem(h) = True
h = .AddItem("Root 2")
.InsertItem(h,Nothing,"Child 1")
.InsertItem(h,Nothing,"Child 2")
.InsertItem(h,Nothing,"Child 3")
End With
End With
|
12
|
How can I show or hide a column

With AxComboBox1
.Columns.Add("Hidden").Visible = False
End With
|
204
|
How can I show or display the control's filter

With AxComboBox1
.Columns.Add("Filter").DisplayFilterButton = True
End With
|
480
|
How can I show only the matching items, while user types in the drop down control

' EditChange event - Fired when the user has taken an action that may have altered text in an edit control.
Private Sub AxComboBox1_EditChange(ByVal sender As System.Object, ByVal e As AxEXCOMBOBOXLib._IComboBoxEvents_EditChangeEvent) Handles AxComboBox1.EditChange
Dim sLabel
With AxComboBox1
sLabel = .get_EditText(e.colIndex)
Debug.Print( "Select the item that maches exactly the typing label: " )
Debug.Print( sLabel )
With .Items
.SelectItem(.FocusItem) = False
.SelectItem(.FindItem(sLabel,e.colIndex)) = True
End With
End With
End Sub
With AxComboBox1
.BeginUpdate()
.SingleEdit = True
.AutoComplete = False
.AutoSelect = False
.AutoSearch = False
.AutoDropDown = True
.IntegralHeight = True
.HeaderVisible = False
.Columns.Add("Friends")
With .Items
.AddItem("Fred")
.AddItem("Tina")
.AddItem("Tom")
End With
.EndUpdate()
End With
|
212
|
How can I show in italic all data in the column

Dim var_ConditionalFormat
With AxComboBox1
var_ConditionalFormat = .ConditionalFormats.Add("1")
With var_ConditionalFormat
.Italic = True
.ApplyTo = EXCOMBOBOXLib.FormatApplyToEnum.exFormatToColumns
End With
.Columns.Add("Column")
.Items.AddItem(0)
.Items.AddItem(1)
End With
|
214
|
How can I show as strikeout all cells in the column

Dim var_ConditionalFormat
With AxComboBox1
var_ConditionalFormat = .ConditionalFormats.Add("1")
With var_ConditionalFormat
.StrikeOut = True
.ApplyTo = EXCOMBOBOXLib.FormatApplyToEnum.exFormatToColumns
End With
.Columns.Add("Column")
.Items.AddItem(0)
.Items.AddItem(1)
End With
|
208
|
How can I show a column that adds values in the cells

With AxComboBox1
.Columns.Add("A")
.Columns.Add("B")
.Columns.Add("A+B").ComputedField = "%0 + %1"
With .Items
.CellCaption(.AddItem(1),1) = 2
End With
With .Items
.CellCaption(.AddItem(10),1) = 20
End With
End With
|
600
|
How can I replace or add an icon at runtime

With AxComboBox1
.BeginUpdate()
.ReplaceIcon("gAAAABgYACEHgUJFEEAAWhUJCEJEEJggEhMCYEXjUbjkJQECj8gj8hAEjkshYEpk8kf8ClsulsvAExmcvf83js5nU7nkCeEcn8boMaocXosCB9Hn09pkzcEuoL/fE+O" & _
"kYB0gB9YhIHrddgVcr9aktZADAD8+P8CgIA==")
.ReplaceIcon("C:\images\favicon.ico",0)
.Columns.Add("Items").Def(EXCOMBOBOXLib.DefColumnEnum.exCellCaptionFormat) = 1
.Items.AddItem("Item <img>1</img>")
.EndUpdate()
End With
|
350
|
How can I remove the filter

With AxComboBox1
With .Columns.Add("Column")
.DisplayFilterButton = True
.FilterType = EXCOMBOBOXLib.FilterTypeEnum.exBlanks
End With
.ApplyFilter()
.ClearFilter()
End With
|
227
|
How can I remove or delete an item

Dim h
With AxComboBox1
.Columns.Add("Default")
h = .Items.AddItem("removed item")
.Items.RemoveItem(h)
End With
|
228
|
How can I remove or delete all items

With AxComboBox1
.Columns.Add("Default")
.Items.AddItem("removed item")
.Items.RemoveAllItems()
End With
|